package com.mhc.suzuki.dal.mapper;

import com.mhc.suzuki.dal.model.EmergencyContactDO;
import com.mhc.suzuki.dal.query.EmergencyContactQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for EmergencyContact.
 */
 @Mapper
 @Repository
public interface EmergencyContactMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(EmergencyContactQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(EmergencyContactQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(EmergencyContactDO record);

    /**
     * insert selective.
     */
    int insertSelective(EmergencyContactDO record);

    /**
     * select by query condition.
     */
    List<EmergencyContactDO> selectByQuery(EmergencyContactQuery query);

    /**
     * select by primary key.
     */
    EmergencyContactDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") EmergencyContactDO record, @Param("query") EmergencyContactQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") EmergencyContactDO record, @Param("query") EmergencyContactQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(EmergencyContactDO record);
}